/*
 * NoTagException.java
 *
 * Created on March 11, 2005, 9:02 PM
 */
package com.bff.slimserver.music.exceptions;

/**
 *
 * @author Bill
 */
public class PlayerException extends RuntimeException {

    private ERROR error;

    public enum ERROR {
        NO_PLAYER_ATTACHED, OTHER_ERROR;
    }

    /** Creates a new instance of NoTagException */
    public PlayerException(ERROR error) {
        this.error = error;
    }

    public PlayerException(ERROR error, String message) {
        super(message);
        this.error = error;
    }

    public PlayerException(ERROR error, String message, Throwable cause) {
        super(message, cause);
        this.error = error;
    }

    /**
     * @return the id
     */
    public ERROR getError() {
        return this.error;
    }
}
